<?php

namespace app\model;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class MerchantUser extends Base
{

    protected $table = "merchant_user";


    protected $connection;


    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->connection = config('database.connections.biqi_merchant.database');
    }


    public function User(): BelongsTo
    {
        return $this->belongsTo(User::class, 'user', 'ulid');
    }

}